/**
 * 课程分类 api 封装
 *
 * @Author:    AKITA
 * @Date:      2025-06-06 11:28:07
 * @Copyright  AKITA
 */
import { postRequest, getRequest } from '/@/lib/axios';

export const paperApi = {
  /**
   * 分页查询  @author  AKITA
   */
  queryPage: (param) => {
    return postRequest('/paper/queryPage', param);
  },

  /**
   * 增加  @author  AKITA
   */
  add: (param) => {
    return postRequest('/paper/add', param);
  },

  /**
   * 修改  @author  AKITA
   */
  update: (param) => {
    return postRequest('/paper/update', param);
  },

  /**
   * 删除  @author  AKITA
   */
  delete: (id) => {
    return getRequest(`/paper/delete/${id}`);
  },

  /**
   * 批量删除  @author  AKITA
   */
  batchDelete: (idList) => {
    return postRequest('/paper/batchDelete', idList);
  },

  info: (param) => {
    return getRequest('/paper/info/' + param);
  },
  comTestPaperOk: (param) => {
    return getRequest('/paper/comTestPaperOk', param);
  },
};
/**
 * 日历明细 api 封装
 *
 * @Author:    AKITA
 * @Date:      2025-06-06 11:29:40
 * @Copyright  AKITA
 */

export const paperaApi = {
  /**
   * 分页查询  @author  AKITA
   */
  queryPage: (param) => {
    return postRequest('/papera/queryPage', param);
  },

  /**
   * 增加  @author  AKITA
   */
  add: (param) => {
    return postRequest('/papera/add', param);
  },

  /**
   * 修改  @author  AKITA
   */
  update: (param) => {
    return postRequest('/papera/update', param);
  },

  /**
   * 删除  @author  AKITA
   */
  delete: (id) => {
    return getRequest(`/papera/delete/${id}`);
  },

  /**
   * 批量删除  @author  AKITA
   */
  batchDelete: (idList) => {
    return postRequest('/papera/batchDelete', idList);
  },
};
